/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.home.main;

import com.home.common.Constants;
import com.home.gui.Login;
import com.home.gui.MainScreen;
import com.home.gui.SubjectChooser;
import java.io.File;
import java.io.InputStream;
import org.apache.commons.io.FileUtils;


/**
 *
 * @author vi
 */
public class SCORECARD {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // setting look and feel Nimbus
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        
        
        
        // open main screen
        MainScreen main = new MainScreen();
        main.setVisible(true);
//        SubjectChooser subjectChooser = new SubjectChooser();
//        subjectChooser.setModal(true);
//        main.addNewInternalFrame(subjectChooser);
        main.addNewInternalFrame(new Login(main));
        
    }

}
